﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Activation;
using Acaweb.Common;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
     public class PlanesEstudiosService : Contracts.IPlanesEstudiosService
    {
        Components.IPlanesEstudiosService _PlanEstudioComponent = AppCtx.Resolve<Components.IPlanesEstudiosService>();

        public List<PlanesEstudios> GetAll()
        {
            return _PlanEstudioComponent.GetAll().ToList();
        }

        public PlanesEstudios GetById(int Id)
        {
            return _PlanEstudioComponent.GetById(Id);
        }

        public List<PlanesEstudios> GetByFacultad(int CodigoFacultad)
        {
            return _PlanEstudioComponent.GetByFacultad(CodigoFacultad).ToList();
        }

        public List<PlanesEstudios> GetByTipoPrograma(TipoPrograma TipoPrograma)
        {
            return _PlanEstudioComponent.GetByTipoPrograma(TipoPrograma).ToList();
        }
    }
}
